#include <stdio.h>

int main()
{char m;
   scanf("%c",&m);
   int n;
   n=m-1;
   int x;
   x=m+1;
   printf("%c %c %c\n",n,m,x);
   printf("%d %d %d\n",n,m,x);


    return 0;
}
